import request from '@/config/axios'

export interface TechnolReviewTblVO {
  id: number
  taskCode: string
  orderNumber: string
  productCode: string
}

// 查询订单管理--技术评审--技术评审列表
export const getTechnolReviewTblPage = async (params) => {
  return await request.get({ url: `/order/technol-review-tbl/page`, params })
}
// 获取任务单号
export const getTaskOrderNumber = async () => {
  return await request.get({ url: `/order/technol-review-task/list` })
}
// 查询订单管理--技术评审--技术评审详情
export const getTechnolReviewTbl = async (id: number) => {
  return await request.get({ url: `/order/technol-review-tbl/get?id=` + id })
}

// 新增订单管理--技术评审--技术评审
export const createTechnolReviewTbl = async (data) => {
  return await request.post({ url: `/order/technol-review-tbl/create`, data })
}

// 修改订单管理--技术评审--技术评审
export const updateTechnolReviewTbl = async (data) => {
  console.log(data)
  return await request.post({ url: `/order/technol-review-tbl/update`, data })
}

// 删除订单管理--技术评审--技术评审
export const deleteTechnolReviewTbl = async (id: number) => {
  return await request.delete({ url: `/order/technol-review-tbl/delete?id=` + id })
}

// 导出订单管理--技术评审--技术评审 Excel
export const exportTechnolReviewTbl = async (params) => {
  return await request.download({ url: `/order/technol-review-tbl/export-excel`, params })
}
